package com.waitingsnow.common.share.bridia.net
{
	import flash.utils.ByteArray;

	/**
	 * 
	 * @author Tensharp
	 * 
	 * <p>BDHttpLoader参数.</p>
	 * 
	 */	
	
	public class BDHttpParamters
	{
		///
		///	[name]
		///
		
		/**
		 * @private 
		 */		
		
		private var _name:String;
		
		/**
		 * 
		 * <p>参数名</p>
		 *  
		 * @return 
		 * 
		 */		

		public function get name():String
		{
			return _name;
		}
		
		/// [setter]

		public function set name(value:String):void
		{
			_name = value;
		}
		
		///
		///	[value]
		///
		
		private var _value:String;

		/**
		 * 
		 * <p>参数值.在上传文件的时候value值为文件名.</p>
		 *  
		 * @return 
		 * 
		 */		
		
		public function get value():String
		{
			return _value;
		}
		
		///	[setter]

		public function set value(value:String):void
		{
			_value = value;
		}

		///
		///	[Data]
		///
		
		private var _data:ByteArray;
		
		/**
		 *
		 * <p>二进制流,上传文件时使用.</p>
		 *  
		 * @return 
		 * 
		 */		

		public function get data():ByteArray
		{
			return _data;
		}
		
		///	[data]

		public function set data(value:ByteArray):void
		{
			_data = value;
		}
		
		///
		///	[Constructor]
		///
		
		/**
		 * <p>创建一个BDHttpParamters.</p> 
		 * 
		 * @param name 参数名
		 * @param value 参数值
		 * @param data 二进制文件流
		 * 
		 */		
		
		public function BDHttpParamters (name:String, value:String, data:ByteArray = null)
		{
			_name  = name;
			_value = value;
			_data  = data;
		}
	}
}